Ext.define('Zm.view.tour.SelectTour',{
    extend:'Ext.window.Window',
    alias:'widget.selecttour',
    uses:['Ext.form.Panel',
        'Ext.form.field.ComboBox',
        'Zm.store.TourEnum',
        'Zm.i18n.Lang'
    ],
    layout:'fit',
    autoShow:true,
    width:400,
    modal:true,
    
    initComponent: function(){
        var me = this,
            lang = Zm.i18n.Lang;
        me.actNode = null;
        Ext.apply(me,{
            title:lang.tSelectDev,
            items:[{
                xtype:'form',
                bodyStyle:'padding:5px 5px 0',
                fieldDefaults:{
                    labelAlign:'right',
                    labelWidth: 80,
                    anchor:'99%'
                },
                items:[{
                    xtype:'combo',
                    fieldLabel:lang.tTourName,
                    name:'tid',
                    valueField:'id',
                    displayField:'text',
                    editable:false,
                    store:Ext.create('Zm.store.TourEnum'),
                    allowBlank:false
                }],
                buttonAlign:'center',
                buttons:[{
                    text:lang.tOk,
                    formBind:true,
                    action:'save'
                }]
            }]
        });
        me.callParent(arguments);
    }
});